package com.johnson.news.model.bean;

import android.text.TextUtils;

import com.johnson.news.R;
import com.johnson.news.util.DateTime;
import com.johnson.news.util.Utils;

public class ReplyItem {

	String status;
	String msg;
	String itemid;
	String bt;
	String content;
	String addtime;
	String edittime;
	String reply;
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getItemid() {
		return itemid;
	}
	public void setItemid(String itemid) {
		this.itemid = itemid;
	}
	public String getBt() {
		return bt;
	}
	public void setBt(String bt) {
		this.bt = bt;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getAddtime() {
		return addtime;
	}
	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}
	
	public String getEdittime() {
		return edittime;
	}
	public void setEdittime(String edittime) {
		this.edittime = edittime;
	}
	public String getReply() {
		return reply;
	}
	public void setReply(String reply) {
		this.reply = reply;
	}
	@Override
	public String toString() {
		return "ReplyItem [status=" + status + ", msg=" + msg + ", itemid="
				+ itemid + ", bt=" + bt + ", content=" + content + ", addtime="
				+ addtime + ", edittime=" + edittime + ", reply=" + reply + "]";
	}

	public String getAskTime() {

		if(!TextUtils.isEmpty(addtime)){
			return "提问时间: " + DateTime.getFullDateTime(Utils.parseLong(addtime) * 1000);

		}else{
			return "提问时间: 暂无数据";
		}

	}

	public String getReplyTime() {

		if(!TextUtils.isEmpty(edittime)){
			return "答复时间: " + DateTime.getFullDateTime(Utils.parseLong(edittime) * 1000);

		}else {
			return "答复时间: 暂无数据";
		}

	}
	
	
}
